package com.ohuang.hilt.data

import android.content.Context
import com.ohuang.hilt.SPUtil
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject


class DataHelper @Inject constructor(@ApplicationContext val context: Context) {


    fun put(key:String,value:String){
        SPUtil.getInstance().put(context,key,value)
    }

    fun getValue(key:String,default:String):String{
       return SPUtil.getInstance().get(context,key,default) as String
    }
}
